import { Controller } from "egg";
export default class UserController extends Controller {
  /**
   * 获取用户信息
   * @returns {UserInfo}
   * */
  public async getUserInfo() {
    const { ctx } = this;
    // ctx.body = "<h1>" + (await ctx.service.app.user.getUserInfo()) + "</h1>";
    ctx.body = await ctx.service.app.user.testParams({
      pageNum: ctx.query.pageNum,
      pageSize: ctx.query.pageSize,
    });
  }
}
